m = [['8', '9'], ['5', '6']]

for index, l in m:
    k = ['8', '5']
    for n in l:
        k[int(index)] = n

        print(tuple(k))
